﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.world.machines {
    import flash.display.*;
    import net.wooga.pets.utils.*;

    public class TreatmentMachineView extends AbstractMachineView {

        private var _boostAnimationMachine:MovieClip;
        private var _cleaningAnimation:MovieClip;

        public function TreatmentMachineView(_arg1:String, _arg2:MovieClip){
            super(_arg1, _arg2);
            this._boostAnimationMachine = AssetsLibrary.getMovieClip("Rooms_BoostAnimationMachine");
            this._boostAnimationMachine.scaleX = (this._boostAnimationMachine.scaleY = 3);
            this._boostAnimationMachine.x = -100;
            this._boostAnimationMachine.y = -300;
            _display.addChild(this._boostAnimationMachine);
            this._cleaningAnimation = AssetsLibrary.getMovieClip("CleaningAnimation");
            this._cleaningAnimation.y = -220;
            _display.addChild(this._cleaningAnimation);
        }
        public function startCleaningAnimation():void{
            this._cleaningAnimation.gotoAndPlay(1);
        }
        public function startBoostAnimation():void{
            this._boostAnimationMachine.gotoAndPlay("start");
        }

    }
}//package net.wooga.pets.views.world.machines 
